import request from '@/utils/request'

// 创建报错管理
export function createXTbErrorManagement(data) {
  return request({
    url: '/xiaoBizHandler/XT-b-error-management/create',
    method: 'post',
    data: data
  })
}

// 更新报错管理
export function updateXTbErrorManagement(data) {
  return request({
    url: '/xiaoBizHandler/XT-b-error-management/update',
    method: 'put',
    data: data
  })
}

// 删除报错管理
export function deleteXTbErrorManagement(id) {
  return request({
    url: '/xiaoBizHandler/XT-b-error-management/delete?id=' + id,
    method: 'delete'
  })
}

// 获得报错管理
export function getXTbErrorManagement(id) {
  return request({
    url: '/xiaoBizHandler/XT-b-error-management/get?id=' + id,
    method: 'get'
  })
}

// 获得报错管理分页
export function getXTbErrorManagementPage(query) {
  return request({
    url: '/xiaoBizHandler/XT-b-error-management/page',
    method: 'get',
    params: query
  })
}

// 导出报错管理 Excel
export function exportXTbErrorManagementExcel(query) {
  return request({
    url: '/xiaoBizHandler/XT-b-error-management/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

